This might happen for slow filesystems where a fast-content-type might
be provided instead. Don't try to manipulate that content_type if it's
NULL, otherwise we'll either throw warnings (at best) or crash (at
worse).
Conflicts:
gtk/gtkfilechooserwidget.c
GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
content_type = g_file_info_get_content_type (info);
+ if (!content_type)
+ goto end;
+
switch (priv->type_format)
{
case TYPE_FORMAT_MIME:
g_assert_not_reached ();
}
+end:
return g_strdup ("");
}